import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)

import myComponent2 from "../components/MyComponent2";
import myComponent1 from "../components/MyComponent1";

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/comp1',
      component: myComponent1
    },
    {
      path: '/comp2',
      component: myComponent2
    }
  ]
})
